// 用户权限
export const UserRole = {
    GUEST: 0,
    USER: 1,
    COACH: 20,
    STAFF: 60
}


/**
 * 用户信息类型接口
 */
export interface UserInfoType {
    id: string;
    username: string;
    avatar?: string;
    age: number;
    role: number;
    gender: string;
    coach_id?: number;
    updateTime: number;
}

/**
 * 用户简单信息接口
 */
export interface UserSimpleInfo {
    id?: number;
    user_id?: number;
    username: string;
    avatar: string;
}

/**
 * 用户信息更新类型接口
 */
export interface UserInfoUpdateType {
    id: number;
    type: string;
    value: string;
}

/**
 * 用户文件上传响应数据接口
 */
export interface UserUploadFileResponseData {
    url: string;
    uid: string;
    cover: string;
    file_name: string;
    file_type: string;
}

/**
 * 教练评论项接口
 */
export interface CoachCommentItem {
    id: number;
    content: string;
    created_at: string;
    user: UserSimpleInfo;
    rating: number;
}